package com.jshoperxms.entity;

import javax.persistence.*;

/**
 * Created by sdywcd on 2018/11/6.
 * Des:
 */
@Entity
@Table(name = "yd_team_member_t", schema = "jshoperxms", catalog = "")
public class YdTeamMemberT {
    private String id;
    private String tmnick;
    private String status;
    private long createtime;
    private String creatorid;
    private long updatetime;
    private int versiont;
    private String memberid;
    private String wxopenid;
    private String teamname;
    private String teamid;
    private String avatarurl;
    private String teamno;
    private String mtype;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "TMNICK", nullable = false, length = 100)
    public String getTmnick() {
        return tmnick;
    }

    public void setTmnick(String tmnick) {
        this.tmnick = tmnick;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "CREATORID", nullable = false, length = 25)
    public String getCreatorid() {
        return creatorid;
    }

    public void setCreatorid(String creatorid) {
        this.creatorid = creatorid;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "MEMBERID", nullable = false, length = 25)
    public String getMemberid() {
        return memberid;
    }

    public void setMemberid(String memberid) {
        this.memberid = memberid;
    }

    @Basic
    @Column(name = "WXOPENID", nullable = false, length = 45)
    public String getWxopenid() {
        return wxopenid;
    }

    public void setWxopenid(String wxopenid) {
        this.wxopenid = wxopenid;
    }

    @Basic
    @Column(name = "TEAMNAME", nullable = false, length = 45)
    public String getTeamname() {
        return teamname;
    }

    public void setTeamname(String teamname) {
        this.teamname = teamname;
    }

    @Basic
    @Column(name = "TEAMID", nullable = false, length = 25)
    public String getTeamid() {
        return teamid;
    }

    public void setTeamid(String teamid) {
        this.teamid = teamid;
    }

    @Basic
    @Column(name = "AVATARURL", nullable = false, length = 255)
    public String getAvatarurl() {
        return avatarurl;
    }

    public void setAvatarurl(String avatarurl) {
        this.avatarurl = avatarurl;
    }

    @Basic
    @Column(name = "TEAMNO", nullable = false, length = 25)
    public String getTeamno() {
        return teamno;
    }

    public void setTeamno(String teamno) {
        this.teamno = teamno;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        YdTeamMemberT that = (YdTeamMemberT) o;

        if (createtime != that.createtime) return false;
        if (updatetime != that.updatetime) return false;
        if (versiont != that.versiont) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (tmnick != null ? !tmnick.equals(that.tmnick) : that.tmnick != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (creatorid != null ? !creatorid.equals(that.creatorid) : that.creatorid != null) return false;
        if (memberid != null ? !memberid.equals(that.memberid) : that.memberid != null) return false;
        if (wxopenid != null ? !wxopenid.equals(that.wxopenid) : that.wxopenid != null) return false;
        if (teamname != null ? !teamname.equals(that.teamname) : that.teamname != null) return false;
        if (teamid != null ? !teamid.equals(that.teamid) : that.teamid != null) return false;
        if (avatarurl != null ? !avatarurl.equals(that.avatarurl) : that.avatarurl != null) return false;
        if (teamno != null ? !teamno.equals(that.teamno) : that.teamno != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (tmnick != null ? tmnick.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (int) (createtime ^ (createtime >>> 32));
        result = 31 * result + (creatorid != null ? creatorid.hashCode() : 0);
        result = 31 * result + (int) (updatetime ^ (updatetime >>> 32));
        result = 31 * result + versiont;
        result = 31 * result + (memberid != null ? memberid.hashCode() : 0);
        result = 31 * result + (wxopenid != null ? wxopenid.hashCode() : 0);
        result = 31 * result + (teamname != null ? teamname.hashCode() : 0);
        result = 31 * result + (teamid != null ? teamid.hashCode() : 0);
        result = 31 * result + (avatarurl != null ? avatarurl.hashCode() : 0);
        result = 31 * result + (teamno != null ? teamno.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "MTYPE", nullable = true, length = 1)
    public String getMtype() {
        return mtype;
    }

    public void setMtype(String mtype) {
        this.mtype = mtype;
    }
}
